package cn.fantasy.study.service.Impl;

import cn.fantasy.study.entity.User;
import cn.fantasy.study.service.UserService;

public class UserServiceProxy implements UserService {

    private UserServiceImpl userService = new UserServiceImpl();

    @Override
    public void register(User user) {
        System.out.println("-----日志功能---------");
        userService.register(user);
    }

    @Override
    public void login(String name, String password) {
        System.out.println("-----log-------------");
        userService.login(name, password);
    }
}
